package com.bjpowernode.crm.workbench.service.impl;

import com.bjpowernode.crm.workbench.domain.Contacts;
import com.bjpowernode.crm.workbench.mapper.ContactsMapper;
import com.bjpowernode.crm.workbench.service.ContactsService;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ContactsServiceImpl implements ContactsService {

    /**
     * 访问联系人数据
     */
    private ContactsMapper contactsMapper;

    @Override
    public void addContacts(Contacts contacts) {
        this.contactsMapper.insertContacts(contacts);
    }

    @Override
    public String queryFullnameById(String id) {
        return this.contactsMapper.selectFullnameById(id);
    }

}
